/*
 * Copyright (c) 2022  by Junzhao
 * THIS FILE IS PART OF JAVA-Data-Structures-and-Algorithms PROJECT
 * All Rights Reserved.
 */

package 二分;

public class BinaryTest {
    public static void main(String[] args) {
//        int[] arr =new int[]{1,2,3,4,5,6,7,8,9,10};
        int[] arr = new int[]{1, 2};
        System.out.println(Binary.search(arr, 1));
        System.out.println(Binary.search(arr, 11));
    }
}